package financial.sharing.center.system.model.entity;

import financial.sharing.center.common.base.BaseEntity;
import financial.sharing.center.common.enums.EnableStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @ClassName SysUser
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/14
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@ToString
@Entity
public class SysUser extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**用户名*/
    private String userName;
    /**用户密码*/
    private String userPassword;

    private Integer enableStatusValue;

    public SysUser() {

    }

    public SysUser(String userName, String userPassword) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.enableStatusValue = EnableStatusEnum.正常.getValue();
    }

    public void setEnableStatusValue(Integer enableStatusValue) {
        this.enableStatusValue = enableStatusValue;
    }
}
